# doctest_require: 'enhanced_arg_parser.rb'
def go *args
  a, b = args.interpret [], :a, :b
  [a, b]
end

# doctest: assigns new
# >> go
# => [:__wants_default_value, :__wants_default_value]
# >> go 1
# => [1, :__wants_default_value]
# >> go 1, 2
# => [1, 2]
# >> go :a => 2
# => [2, :__wants_default_value]

# doc test: works with *args -- not yet implemented
def go2 *args
  a,b, args2 = args.interpret [:a, :b], :"*args"
end
# >> go2(1, 2, 3)
# => [1,2,[[3]]
# >> go2(1, 2)
# => [1,2,[[]]
